Q3Point2D_AffineComb
You can use theQ3Point2D_AffineComb
function to determine the two-dimensional point that is the affine combination of an array of points.
TQ3Point2D *Q3Point2D_AffineComb ( const TQ3Point2D *points2D, const float *weights, unsigned long nPoints, TQ3Point2D *result);
points2D
- A pointer to an array of two-dimensional points.
weights
- A pointer to an array of weights. The sum of the weights must be 1.0.
nPoints
- The number of points in the
points2D
array.result
- On exit, the point that is the affine combination of the points in
points2D
having the weights in theweights
array.DESCRIPTION
TheQ3Point2D_AffineComb
function returns, as its function result and in theresult
parameter, the point that is the affine combination of the points in the arraypoints2D
having the weights in the arrayweights
.